package com.hziee.graduate.ticket.entity;


import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@TableName("t_region")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Region extends Model<Region> {
    //区域主键
    @TableId
    private Integer id;
    //区域名称
    private String name;
    //区域上级标识
    private Integer pid;
    //地名简称
    private String sname;
    //区域等级
    private Integer level;
    //区域编码
    private String citycode;
    //邮政编码
    private String yzcode;
    //组合名称
    private String mername;

    private Object lng;

    private Object lat;

    private String pinyin;

    private Integer delFlag;
    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}

